<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- 兼容移动端和PC端 -->
  <title th:replace="${title}">blog详情</title>  <!--把传递过来的title替换-->
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" th:href="@{/css/semantic-UI/semantic.min.css}">
  <link rel="stylesheet" th:href="@{/css/typo.css}">
  <link rel="stylesheet" th:href="@{/css/animate.min.css}">
  <link rel="stylesheet" th:href="@{/lib/prism/prism.css}">
  <link rel="stylesheet" th:href="@{/lib/tocbot/tocbot.css}">
  <link rel="stylesheet" th:href="@{/css/me.css}">
</head>
<body>

<!-- 导航 -->
<!-- inverted 反转   attached 没有圆角  segment-->
<nav th:fragment="menu(n)" class="ui inverted blue attached segment m-padded-tb-mini m-shadow-small">
  <div class="ui container">
    <!-- stackable屏幕下的时候可堆叠的 适应手机端 -->
    <div class="ui inverted secondary stackable menu">
      <h2 class="ui teal header item"><a href="" th:href="@{/}" class="teal">陈楷的Blog</a></h2>
      <!-- 标签加了mini之后   火狐正常显示 edge错位显示  所以加上small -->
      <a href="#" th:href="@{/index}" class="item m-item m-mobile-hide" th:classappend="${n==1} ?'active'"><i class="small home icon"></i>首页</a>
      <a href="#" th:href="@{/types/-1}" class="item m-item m-mobile-hide" th:classappend="${n==2} ?'active'"><i class="small idea icon"></i>分类</a>
      <a href="#" th:href="@{/tags/-1}" class="item m-item m-mobile-hide" th:classappend="${n==3} ?'active'"><i class="small tags icon"></i>标签</a>
      <a href="#" th:href="@{/archives}" class="item m-item m-mobile-hide" th:classappend="${n==4} ?'active'"><i class="small clone icon"></i>归档</a>
      <a href="#" th:href="@{/about}" class="item m-item m-mobile-hide" th:classappend="${n==5} ?'active'"><i class="small info icon"></i>关于我</a>
      <div class="right m-item item m-mobile-hide">
        <!-- transparent 颜色灰色 -->
        <form action="#" name="search" th:action="@{/search}" method="post" target="_blank">
          <div class="ui icon inverted transparent input ">
            <input type="text" placeholder="Search...." name="query" th:value="${query}">
            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
          </div>
        </form>
      </div>
    </div>
  </div>
  <a href="#" class="ui menu toggle black icon button m-top-right m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>


<!-- 底部footer -->
<footer th:fragment="footer" class="ui  inverted blue vertical segment m-footer-padding-tb-massive">
  <div class="ui center aligned container   ">
    <div class="ui inverted divided stackable grid">
      <!--二维码-->
      <div class="three wide column">
        <div class="ui inverted link list">
          <div class="item">
            <img th:src="@{/image/WeChat.jpg}" class="ui rounded image"
                 style="width: 110px" alt=""/>
          </div>
        </div>
      </div>
      <!--文字-->
      <div class="three wide column">
        <h4 class="ui inverted header m-text-thin m-text-spaced m-opacity-mini">最新博客</h4>
        <div id="newBlog-contaier">
          <div class="ui inverted link list" th:fragment="newBlogList">
            <a href="#" class="item" th:each="blog : ${newBlogs}" th:text="${blog.title}"
               th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">用户故事</a>
          </div>
        </div>
      </div>
      <div class="three wide column">
        <h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
        <div class="ui inverted link list">
          <a href="#" class="item" th:text="#{index.email}">Emall:1240863484@qq.com</a>
          <a href="#" class="item" th:text="#{index.qq}">QQ:1240863484</a>
        </div>
      </div>
      <div class="seven wide column">
        <h4 class="ui inverted header m-text-thin m-text-spaced ">博客简介</h4>
        <p class="m-text-thin m-text-spaced  m-opacity-mini">
          这是我的个人博客、会分享关于编程、学习笔记、思考相关的任何内容、希望可以给来到这儿的人有所帮助...
        </p>
      </div>
    </div>
    <div class="ui inverted section divider">
      <br>
      <br>
      <p class="m-text-thin m-text-spaced m-opacity-tiny">
        Copyright © 2022 - 06 - 01 Lirenmi Designed by Lirenmi
      </p>
    </div>
  </div>
</footer>


<th:block th:fragment="script">
  <script th:src="@{js/Jquery.js}"></script>
  <script th:src="@{css/semantic-UI/semantic.min.js}"></script>
  <script th:src="@{lib/prism/prism.js}"></script>
  <script th:src="@{lib/tocbot/tocbot.min.js}"></script>
  <script th:src="@{lib/qrcode/qrcode.min.js}"></script>
  <script th:src="@{lib/jquery-scrollTo/jquery.scrollTo.min.js}"></script>
  <script th:src="@{lib/jquery.waypoints/jquery.waypoints.min.js}"></script>
  <script>$('#newBlog-contaier').load(/*[[@{/footer/newblog}]]*/"/footer/newblog");</script>
</th:block>


</body>
</html>